package sevensoft.结构型模式.装饰模式;

import java.math.BigDecimal;

public final class Pizza extends Food{

    public Pizza(){
        super(new BigDecimal("20"),"披萨");
    }

    @Override
    public BigDecimal cost() {
        return getPrice();
    }
}
